Skip to content

Conversation

@victornoel
Copy link
Contributor

@victornoel victornoel commented Jun 30, 2025

Backport of #8905 for 6.6


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.


https://hibernate.atlassian.net/browse/HHH-18581

…portsBindingNullForSetObject()` for `Dialect` to optimize binding null

The method `PreparedStatement.getParameterMetaData().getParameterType(int)` call is expensive for some JDBC driver such as pgJDBC, we should avoid it if the driver supports binding `Types.NULL` for `setNull()` or `null` for `setObject()`.
@victornoel
Copy link
Contributor Author

cc @beikov

@beikov beikov merged commit a0bf95e into hibernate:6.6 Jun 30, 2025
29 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants